<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        body {
            background-color: white;
        }

        #app {
            width: 95%;
            margin: 30px 2.5%;
        }

        .top {
            display: flex;
            justify-content: space-between;
            padding: 10px 0;
        }

        .top .ss {
            color: rgb(21, 92, 200);
        }

        input {
            border: none;
            outline: none;
            background-color: rgb(238, 244, 250);
            width: 85%;
            line-height: 30px;
            border-radius: 10px;
        }

        .search {
            display: flex;
            justify-content: space-between;
            padding-bottom: 25px;
        }

        .search span {
            color: rgb(3, 98, 240);
            line-height: 30px;
        }

        .history {
            display: flex;
            /* justify-content: space-evenly; */
            flex-wrap: wrap;
        }

        .history div {
            background-color: #a7a6a6;
            margin: 2px;
            border-radius: 5px;
        }
    </style>
</head>

<body>

    <div id="app">
        <div class="top">
            <div><b>搜素</b></div>
            <div class="ss">...</div>
        </div>
        <div class="search">
            <input type="text" placeholder="搜素商家，搜素名称" v-model="historyText">
            <span @click="add">搜素</span>
        </div>
        <div>历史记录</div>
        <div class="history">
            <div v-for="(item,index) in arr" :key="index">{{item}}</div>
        </div>
    </div>

    <script src="vue-2.5.21.js"></script>
    <script src="列表渲染.js"></script>
</body>

</html>